/**
 * 定义ui公共模块
 */
(function(window, angular, undefined){

	var filter = angular.module('water.common.filter',[]);
	
	filter.filter('firstImgUrl', function () {
		  return function (value) {
			  if(!value){
				  return ;
			  }
			  var files = value.split("|");
			  if(files.length > 0){
				  var urlInfo = files[0].split(":");
				  return urlInfo[0]
			  }
		  };
		});
	
}(window, angular));